package JMU2.ti302;

import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int n = scanner.nextInt();
            int begin = scanner.nextInt();
            int end = scanner.nextInt();
            StringBuilder str = new StringBuilder();
            for (int i = 0; i < n; i++) {
                str.append(i);

            }

            System.out.println(str.substring(begin, end));
        }
    }
}
